<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="pg" uri="/tags/pagination"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>网点管理</title>
		<s:include value="../common/include.jsp"></s:include>
		<meta http-equiv="pragma" content="no-cache">
		<script type="text/javascript">
	//查询
	function doQuery() {
		showBar();
		initPage("brt_sForm");
		chgAction("branch", "query");
		document.forms[0].submit();
	}
	function exportExcel() {
		chgAction("branch", "exportExcel");
		document.forms[0].submit();
	}
	$(document).ready(function() {
		$("#btnload").click(function() {
			txt = "";
			$.post("branch!query.action", {
				excelFileName : "abcd"
			}, function(result) {
				$("#myDiv").append(result);
			});
		});
	});
</script>
	</head>

	<body class="workingArea">
		<span class="outSpan"> <s:form name="branch">
				<input id="btnload" value="Load" type="button" />
				<div id="myDiv" />
				<table class="innerTable">
					<tr>
						<td class="tableLabel">
							BRTPRO_COD：
						</td>
						<td>
							<s:textfield name="brt_sForm.brtpro_cod"></s:textfield>
						</td>
						<td class="tableLabel">
							BRTBR：
						</td>
						<td>
							<s:textfield name="brt_sForm.brtbr"></s:textfield>
						</td>
						<td class="tableLabel">
							BRTBRNAM：
						</td>
						<td>
							<s:textfield name="brt_sForm.brtbrnam"></s:textfield>
						</td>
						<td class="tableLabel">
							<input type="button" value="查询" class="smallButton"
								onclick="doQuery();" />
							<input type="button" value="EXCEL" class="smallButton"
								onclick="exportExcel();" />
						</td>
					</tr>
				</table>
				<table class="innerTable">
					<tr class="tableTitle">
						<td>
							BRTPRO_COD

						</td>
						<td>
							BRTBR

						</td>
						<td>
							BRTBRNAM
						</td>
						<td>
							BRTGACBR
						</td>
						<td>
							BRTLQDLEV
						</td>
						<td>
							BRTLQDBR
						</td>
						<td>
							BRTLACSEQ
						</td>
					</tr>
					<s:iterator value="queryList" status="st">
						<s:if test="#st.odd==true">
							<tr class="tableTextOdd">
						</s:if>
						<s:else>
							<tr class="tableTextEven">
						</s:else>
						<td>
							<s:property value="brtpro_cod" />
						</td>
						<td>
							<s:property value="brtbr" />
						</td>
						<td>
							<s:property value="brtbrnam" />
						</td>
						<td>
							<s:property value="brtgacbr" />
						</td>
						<td>
							<s:property value="brtlqdlev" />
						</td>
						<td>
							<s:property value="brtlqdbr" />
						</td>
						<td>
							<s:property value="brtlacseq" />
						</td>
						</tr>
					</s:iterator>
					<tr class="tableTitle">
						<td colspan="7" align="center">
							<pg:pages curPageNo="%{brt_sForm.curPageNo}"
								total="%{brt_sForm.total}"
								totalRecord="%{brt_sForm.totalRecord}"
								styleClass="paginationSpan" method="query" action="branch"></pg:pages>
						</td>
					</tr>
				</table>
				<s:include value="../common/pagination.jsp">
					<s:param name="formName" value="'brt_sForm'" />
				</s:include>
			</s:form> </span>
	</body>
</html>
